"""
可变参数 args
可变参数 kwargs (keyword)
"""

def sum_nums(*args):
    print(args,type(args))
    
    rst = 0
    for i in args:
        rst += i
    return rst


def sum_nums1(name,*args):
    print(name,type(name))
    print(args,type(args))
    
    rst = 0
    for i in args:
        rst += i
    return rst

print(sum_nums(1,5,3))  
print(sum_nums1("张三",3,6,4,2,1))


def keyword_args(**kwargs):
    print(kwargs,type(kwargs))
    print(kwargs["age"])
    print(kwargs["name"])
        
keyword_args(name = "唐僧",aa = "AH",age = 50,height = 150)


    

